package com.fhz.mvvm.dao;

import androidx.databinding.ObservableList;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;

import com.fhz.mvvm.entity.GoodsInfoLocal;

import java.util.List;

import io.reactivex.Observable;

/**
 * 时间:2023/8/19
 *
 * @author Mr.Feng
 * 简述: TODO
 */
@Dao
public interface GoodsInfoDao {

    @Insert
    void insertGoodsInfo(GoodsInfoLocal... goodsInfoLocals);

    @Query("select * from goods")
    LiveData<List<GoodsInfoLocal>> getAllGoods();

//    @Query("select * from goods")
//    List<GoodsInfoLocal> getAllGoods();
//
//    @Query("select * from goods")
//    Observable<List<GoodsInfoLocal>> getAllGoods();



}   
